SelectMediaDeviceCallback

interface SelectMediaDeviceCallback : MediaSyncCallback<P, R>

This callback is invoked when the web page asks which media input device should be used.

If there is no media input devices of the requested type (e.g. there are no video input devices), then the callback will not be invoked).

Important: the engine will be blocked until you return control from the callback.

If the callback throws an exception or the selected media device in response is not the one from the list, the system default media input device will be used.

Since

7.1

Types

Link copied to clipboard
interface Params
The parameters of the SelectMediaDeviceCallback.
Link copied to clipboard
interface Response

Functions

Link copied to clipboard
abstract fun on(params: P): R
Invoked when the callback needs a response of type R that may be determined based on the provided callback parameters.